# to get the list of input files, go to the root of the document folder, and:
# grep -r '\\input{' * | cut -d ':' -f 2 | cut -c 8- | rev | cut -c 2- | rev | sed 's|^|  ${PROJECT_SOURCE_DIR}/acknowledgments/|g' | sed 's/$/.tex/g'
set(INCLUDED_TEX
    ${PROJECT_SOURCE_DIR}/header.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/plant-application-guide.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/title.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/introduction.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/introduction/organization.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/scope.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/energyplus-nomenclature.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/generating-an-energyplus-line-diagram.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/generating-an-energyplus-line-diagram/example-for-energyplus-line-diagram.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/inputting-the-system-into-the-idf-file.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-01-chiller-and-condenser-loops.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-01-chiller-and-condenser-loops/chilled-water-loop.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-01-chiller-and-condenser-loops/condenser-loop.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-02-thermal-energy-storage.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-02-thermal-energy-storage/primary-cooling-loop-coolsysprimary-chiller.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-02-thermal-energy-storage/condenser-loop-condenser-loop-cooling-tower.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-02-thermal-energy-storage/heating-loop-heatsys1-boiler.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-system-3-primary-secondary-pumping.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-system-3-primary-secondary-pumping/primary-chilled-water-loop-chiller-s.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-system-3-primary-secondary-pumping/secondary-chilled-water-loop-plate-heat.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-system-3-primary-secondary-pumping/primary-secondary-pumping.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/example-system-3-primary-secondary-pumping/condenser-loop-cooling-tower.tex
    ${PROJECT_SOURCE_DIR}/plant-application-guide/src/references.tex
    ${PROJECT_SOURCE_DIR}/title.tex)

# to get the list of included images, go to the root of the document folder and:
# grep -r '\\includegraphics' * | cut -d ':' -f 2 | rev | cut -d '{' -f 1 | rev | cut -d '}' -f 1 | sed 's/^/  /g' | sort -n -t'.' -k 1.14
set(INCLUDED_IMAGES
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image001.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image002.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image003.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image004.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image005.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image006.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image007.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image008.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image009.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image010.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image011.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image012.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image013.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image014.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image015.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image016.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image017.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image018.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image019.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image020.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image021.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image022.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image023.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image024.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image025.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image026.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image027.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image028.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image029.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image030.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image031.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image032.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image033.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image034.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image035.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image036.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image037.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image038.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image039.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image040.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image041.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image042.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image043.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image044.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image045.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image046.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image047.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image048.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image049.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image050.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image051.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image052.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image053.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image054.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image055.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image056.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image057.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image058.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image059.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image060.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image061.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image062.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image063.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image064.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image065.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image066.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image067.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image068.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image069.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image070.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image071.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image072.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image073.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image074.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image075.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image076.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image077.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image078.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image079.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image080.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image081.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image082.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image083.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image084.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image085.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image086.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image087.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image088.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image089.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image090.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image091.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image092.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image093.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image094.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image095.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image096.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image097.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image098.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image099.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image100.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image101.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image102.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image103.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image104.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image105.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image106.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image107.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image108.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image109.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image110.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image111.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image112.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image113.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image114.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image115.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image116.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image117.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image118.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image119.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image120.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image121.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image122.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image123.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image124.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image125.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image126.png
    ${PROJECT_SOURCE_DIR}/plant-application-guide/media/image127.png)

create_doc_target("plant-application-guide" "PlantApplicationGuide")
